package Dao_view

import "Sales_system/Dao"

func Getorderview() (error, []orderview, int64) {
	var OrderView  []orderview
	var total int64
	err := Dao.Db.Table("orderview").Count(&total).Find(&OrderView).Error
	return err, OrderView, total
}